package com.example.im.common;

import androidx.room.Database;
import androidx.room.RoomDatabase;

import com.example.im.dao.AccountInfoDao;
import com.example.im.dao.ChatRecordEntireDao;
import com.example.im.dao.ChatRecordLastDao;
import com.example.im.dao.FriendOrRoomDao;
import com.example.im.entity.AccountInfo;
import com.example.im.entity.ChatRecordEntire;
import com.example.im.entity.ChatRecordLast;
import com.example.im.entity.FriendOrRoom;

@Database(entities = {
        AccountInfo.class,
        ChatRecordLast.class,
        ChatRecordEntire.class,
        FriendOrRoom.class},
        version = 1)
public abstract class AppDatabase extends RoomDatabase {

    public abstract AccountInfoDao accountDao();

    public abstract ChatRecordLastDao chatRecordLastDao();

    public abstract ChatRecordEntireDao chatRecordEntireDao();

    public abstract FriendOrRoomDao friendOrRoomDao();
}
